﻿using Nancy;
using SAP.BusinessOne.Cockpit.Services;

namespace SAP.BusinessOne.Cockpit.Handlers
{
    public class WorkbenchModule : CockpitModule
    {
        public WorkbenchModule()
            : base("workbench")
        {
            Get["/{id:int}"] = parameters => Response.AsJson(new WorkbenchService().GetWorkbench((int)parameters.id));
        }
    }
}